function setUp(){
	$('button#downloadFile').bind('click', function(){
		file = $('select#download_as').val();
		if(file == "PDF"){
			window.location = PicBoard.baseURL + "downloads/help.pdf";
		}
		
		if(file == "DOC"){
			window.location = PicBoard.baseURL + "downloads/help.doc";
		}
	});
}

function setupNav(){
	$('li > a').each(function(i, v){
		$(this).bind('click', function(){
			$('#accordion').accordion( "activate" , i );
		})
	});
}


PicBoard.addLoadEvent( "setUp()" );